package com.lighting.smssystem.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.lighting.smssystem.utils.Long2StringConvert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Author LeeMaster
 * drop table if exists metric_tbl;
 * -- 用户用量记录
 * create table metric_tbl(
 *   metric_id bigint primary key auto_increment,
 *   metric_user bigint not null ,
 *   metric_left int not null default 0,
 *   metric_limit int not null default 0
 * );
 */
@Data
@ApiModel
@TableName("metric_tbl")
public class Metric {
    @ApiModelProperty
    @JsonSerialize(using = Long2StringConvert.class)
    private Long metricId;

    @ApiModelProperty
    private Long metricUser;

    @ApiModelProperty
    private Integer metricLeft;

    @ApiModelProperty
    private Integer metricLimit;
}
